
package com.kweative.lingua.server.structures;

import com.kweative.type.Node;
import java.util.HashMap;

/**
 *
 * @author henrik
 */
public class ArgumentsNamed extends Arguments {
    private HashMap<String,Node> namedArgs = new HashMap<String, Node>();
    public Node get(String name) {
        if (has(name))
            return namedArgs.get(name);
        return null;
    }
    public void add(String name,Node arg) {
        namedArgs.put(name, arg);
        add(arg);
    }
    public boolean has(String name) {
        return namedArgs.containsKey(name);
    }
}
